package cn.wolfcode.trip.base.query;

import lombok.Getter;
import lombok.Setter;
import org.springframework.util.StringUtils;

@Setter
@Getter
public class QueryObject {
    //用户传递的当前页
    private int currentPage = 1;
    //用户传递的页面大小
    private int pageSize = 4;
    //用户传递的关键字
    private String keyword;

    public String getKeyword() {
        return StringUtils.hasLength(keyword) ? keyword : null;
    }

}
